package org.wjw.org.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department {
    @ApiParam(value = "主键")
    private Long id;
    @ApiParam(value = "部门名字")
    private String name;
    @ApiParam(value = "部门简介")
    private String intro;
    @ApiParam(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @ApiParam(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    @ApiParam(value = "经理id")
    private Long managerId;
    @ApiParam(value = "经理")
    private Employee manager;
    @ApiParam(value = "父部门id")
    private Long parentId;
    @ApiParam(value = "父部门")
    private Department parent;
    @ApiParam(value = "路径")
    private String path;
    @ApiParam(value = "状态")
    private Integer state;
    @ApiParam(value = "子列表")
    private List<Department> children;
}
